import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [{
  path: '/',
  redirect: {
    name: 'index'
  }
}, {
  path: "/index",
  name: "index",
  component: () => import('@/views/index'),
  meta:{title:'首页'}
}, {
  path: "/home",
  name: "home",
  component: () => import('@/views/home'),
  meta:{title:'首页'}
}, {
  path: "/housedetail",
  name: "housedetail",
  component: () => import('@/views/housedetail'),
   meta:{title:'街道社区房产出租'}
}, {
  path: "/businessdetail",
  name: "businessdetail",
  component: () => import('@/views/businessdetail'),
   meta:{title:'街道社区小型工程'}
}, {
  path: "/capitaldetail",
  name: "capitaldetail",
  component: () => import('@/views/capitaldetail'),
   meta:{title:'小微权力'}
}, {
  path: "/resources",
  name: "resources",
  component: () => import('@/views/resources'),
   meta:{title:'合同管理'}
}, {
  path: "/assets",
  name: "assets",
  component: () => import('@/views/assets'),
   meta:{title:'资产管理'}
}, {
  path: "/capitalanalysis",
  name: "capitalanalysis",
  component: () => import('@/views/capitalanalysis'),
   meta:{title:'资金管理'}
}];

const router = new VueRouter({
  // mode: "history",
  base: "/cockpit/pc/gsq/",
  routes
});

export default router;